package com.songlanyun.modules.coupon.dao;

import com.songlanyun.modules.coupon.entity.CouponGoodsEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.songlanyun.modules.goods.model.vo.GoodsSuperSlimVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 优惠券与商品的关系
 *
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2022-07-05 15:20:02
 */
@Mapper
public interface CouponGoodsDao extends BaseMapper<CouponGoodsEntity> {

    List<GoodsSuperSlimVo> loadAdaptGoods(@Param("shopId") Long shopId,@Param("couponId") Long couponId);

    List<Long> loadAdaptGoodIds(@Param("shopId") Long shopId,@Param("couponId") Long couponId);
}
